package com.seari.mapper;

import com.seari.bean.*;
import com.seari.dto.EquipmentLedgerAndInfoMaintenanceRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: zyk
 * @Date: 2020/1/3 17:00
 * @Version 1.0
 */
@Mapper
public interface EquipmentLedgerAndInfoMaintenanceMapper {
    List<ETInformation> getDeviceAccountBySystemNameAndEtName(EquipmentLedgerAndInfoMaintenanceRequest req);

    int getAccountListCount();

    List<ETInformation> getAttrAndValueByEId(String eid);

    List<PZLine> getLineList(Map<String, String> map);

    PZLine getLineByLineId(Map<String, String> map);

    List<PZStation> getStationByParam(Station station);

    List<ETInformationExcel> getFMcAttrByParamsExcel(EquipmentLedgerAndInfoMaintenanceRequest req);

    int addProductBatch(List<Product> productList);

    int addMcAttrValueBatch(List<MaterialCaregoryAttrVaule> materialCaregoryValueAttrList);

    void saveDevLifeInfo(DevLifeBean devLife);

    Integer saveAttrValue(ETInformation etInformation);

    int deleteMcAttrByEId(String eid);

    int updateMcAttr(ETInformation etInformation);

    List<ETMaintainRecord> getETMaintainRecordByTaskNum(String eid);
}
